package org.dairy.farms.model;

import javax.persistence.Embeddable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: gduggira
 * Date: Jun 10, 2011
 * Time: 4:17:26 PM
 */
@Embeddable
public class AuditInfo {

    @javax.persistence.Column(name = "DATE_CREATED",nullable=false,insertable=true, updatable=false)
    private Date dateCreated;
    @javax.persistence.Column(name = "DATE_MODIFIED",nullable=false)
    private Date dateModified;
    @javax.persistence.Column(name = "CREATED_BY",nullable=false,insertable=true, updatable=false)
    private Long createdBy;
    @javax.persistence.Column(name = "MODIFIED_BY",nullable=false)
    private Long modifiedBy;

    public void setDateCreated(Date createdDate) {
        this.dateCreated = createdDate;
    }

    public Date getDateCreated() {
        return this.dateCreated;
    }

    public void setCreatedBy(Long personId) {
        this.createdBy = personId;
    }

    public Long getCreatedBy() {
        return this.createdBy;
    }

    public Date getDateModified() {
        return dateModified;
    }

    public void setDateModified(Date dateModified) {
        this.dateModified = dateModified;
    }

    public Long getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(Long modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
}
